package com.tfswue.cxy.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
//import org.apache.catalina.User;

@Data
@TableName("tb_order")
public class Order {
    private Long id;
    private Long price;
    private String name;
    private Integer num;
    private Long userId;

    @TableField(exist = false)
    private String orderStatus;
    //嵌入 User 对象,并标记为非表字段
    @TableField(exist = false)
    private User user;
}
